//
//  NSLayoutConstraint+Description.m
//  backpack
//
//  Created by wj on 16/6/19.
//  Copyright © 2016年 wujian. All rights reserved.
//

#import "NSLayoutConstraint+Description.h"

@implementation NSLayoutConstraint (Description)

-(NSString *)description {
    
    if ([NSStringFromClass([self.firstItem class]) isEqualToString:@"UIImageView"]){
        
        return [NSString stringWithFormat:@"id: %@, constant: %f", ((UIImageView *)self.firstItem).image , self.constant];
    }
    
    return [NSString stringWithFormat:@"id: %@, constant: %f", [self.firstItem class] , self.constant];
    
}

@end
